package com.rzl.expense.expense.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.rzl.expense.expense.mapper.RentPaymentMapper;
import com.rzl.expense.expense.domain.RentPayment;
import com.rzl.expense.expense.service.IRentPaymentService;

/**
 * 房租费缴费记录Service业务层处理
 * 
 * @author expense
 * @date 2024-11-27
 */
@Service
public class RentPaymentServiceImpl implements IRentPaymentService 
{
    @Autowired
    private RentPaymentMapper rentPaymentMapper;

    /**
     * 查询房租费缴费记录
     * 
     * @param paymentId 房租费缴费记录主键
     * @return 房租费缴费记录
     */
    @Override
    public RentPayment selectRentPaymentByPaymentId(String paymentId)
    {
        return rentPaymentMapper.selectRentPaymentByPaymentId(paymentId);
    }

    /**
     * 查询房租费缴费记录列表
     * 
     * @param rentPayment 房租费缴费记录
     * @return 房租费缴费记录
     */
    @Override
    public List<RentPayment> selectRentPaymentList(RentPayment rentPayment)
    {
        return rentPaymentMapper.selectRentPaymentList(rentPayment);
    }

    /**
     * 新增房租费缴费记录
     * 
     * @param rentPayment 房租费缴费记录
     * @return 结果
     */
    @Override
    public int insertRentPayment(RentPayment rentPayment)
    {
        return rentPaymentMapper.insertRentPayment(rentPayment);
    }

    /**
     * 修改房租费缴费记录
     * 
     * @param rentPayment 房租费缴费记录
     * @return 结果
     */
    @Override
    public int updateRentPayment(RentPayment rentPayment)
    {
        return rentPaymentMapper.updateRentPayment(rentPayment);
    }

    /**
     * 批量删除房租费缴费记录
     * 
     * @param paymentIds 需要删除的房租费缴费记录主键
     * @return 结果
     */
    @Override
    public int deleteRentPaymentByPaymentIds(String[] paymentIds)
    {
        return rentPaymentMapper.deleteRentPaymentByPaymentIds(paymentIds);
    }

    /**
     * 删除房租费缴费记录信息
     * 
     * @param paymentId 房租费缴费记录主键
     * @return 结果
     */
    @Override
    public int deleteRentPayment(String[] currentDate)
    {
        return rentPaymentMapper.deleteRentPayment(currentDate[0],currentDate[1]);
    }




    @Override
    public void batchRentPayment(List<RentPayment> list)
    {

         rentPaymentMapper.batchRentPayment(list);
    }


}
